// 文件路径: src/main/java/com/macro/mall/tiny/modules/oms/dto/CartListQueryParam.java
package com.macro.mall.tiny.modules.oms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "购物车列表查询参数")
public class CartListQueryParam {

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "认证token")
    private String token;

    @Schema(description = "商品SKU ID")
    private Integer skuId;

    @Schema(description = "加购时间开始")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeStart;

    @Schema(description = "加购时间结束")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeEnd;

    @Schema(description = "页码", defaultValue = "1")
    private Integer pageNum = 1;

    @Schema(description = "每页数量", defaultValue = "10")
    private Integer pageSize = 10;
}
